<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<%= javascript_include_tag :defaults %>

<% @projects.each do |project| %>
<br />
<div style="background: #f3f3f3;" id="project_<%=  project.id %>">
<h2>
  <%#=h project.name %>
  <%= link_to project.name,partner_project_path(@partner,project) %>
<span>created by <%=h project.create_by %></span> </h2>
<p><%=h project.description %></p>
<p>&nbsp;</p>
<p>
<%=  link_to_remote "Delete", :url => partner_project_path(@partner,project),
  
  :action => "destroy",
          :method => :delete,
          :id => project.id %> | <%= link_to 'Edit', edit_partner_project_path(@partner,project) %></p>



  
<%#=  link_to "Delete",partner_project_path(@partner,project),
          :confirm => 'Do you wants to delete the project "'+project.name+'" ?',
          :action => "destroy",
          :method => :delete,
          :id => project.id %> 
</div>
<% end %>
<%= link_to 'Add New Project', new_partner_project_path %>
<%#= link_to 'ViewPartner', partner_projects_path %>